/**
 * description:BaseUtils
 * date: 2022/04/15/18:56:00
 * author: xinyu
 * version: 1.0
 **/
interface InterBaseUtils {
    Compare(v1: number, v2: number): number; //比较函数，大于返回1，小于返回-1，等于返回0
}

class BaseUtils implements InterBaseUtils {
    public Compare(v1: number, v2: number): number {
        if (v1 < v2) {
            return -1;
        } else if (v1 > v2) {
            return 1;
        } else {
            return 0;
        }
    }
}

export {BaseUtils}